<div>
    <h1 matDialogTitle>邀请组员</h1>
    <mat-dialog-content>
        <mat-form-field class="full-width">
            <input matInput placeholder="组员名称" [matAutocomplete]="autoMembers">
        </mat-form-field>
    </mat-dialog-content>
    <mat-dialog-actions>
        <button mat-raised-button color="primary" (click)="onClick()">保存</button>
        <button mat-button matDialogClose>关闭</button>
    </mat-dialog-actions>
</div>
<mat-autocomplete #autoMembers="matAutocomplete" [displayWith]="displayUser">
    <mat-option *ngFor="let item of items" [value]="item">
        <span>{{item.name}}</span>
    </mat-option>
</mat-autocomplete>